<link href="../addons/jy_newcar/custom/templates/mobile/style.css?v=201905251730" rel="stylesheet">
<style>
.fui-tab a{
    color: #eee;
}
.fui-tab:after {
    height: 0;
    background: none;
}
.fui-tab.fui-tab-success a.active {
    color: #fff;
	font-weight:bold;
}
.banyuan{
	padding:0.5rem;
	height: 7rem;
	border-radius: 7rem 7rem 0 0;
	border: 4px solid #f60;
}
</style>
<div class="fui-page fui-page-current page-commission-down">
    <div class="fui-content">
		<div style="background: {{main.syscolor||'#05c175'}};padding:0.5rem;margin-top:0;padding-bottom:1.6rem;height:5rem">
		<div class="fui-tab fui-tab-success" style="background:none">
			<a ng-class="{'active':pagedata.params.type2==3}" href="javascript:;" ng-click="pagedata.params.type2=3;tool.get_list('jy_newcar/fenxiao.credit_log/list/',true)">金币</a>
			<a ng-class="{'active':pagedata.params.type2==2}" href="javascript:;" ng-click="pagedata.params.type2=2;tool.get_list('jy_newcar/fenxiao.credit_log/list/',true)">余额</a>
			<!--<a ng-class="{'active':pagedata.params.type2==4}" href="javascript:;" ng-click="pagedata.params.type2=4;tool.get_list('jy_newcar/credit_log/list/type=0',true)">提现明细</a>-->
		</div>
		 </div>
		 <div style="padding:0.5rem;margin-top:-2.3rem">
		 <div ng-if="pagedata.params.type2==1" class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计收入</div>
					<div>{{pagedata.data.credit1inall || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 消费积分余额</div>
					<div class="bold" style="font-size:1rem">{{pagedata.member.credit1 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit1inday || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日收入</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit1inlastday || '0'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日收入</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit1outall || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">累计支出</div>
								</div>
					</div>
			</div>
        </div>
		<div ng-if="pagedata.params.type2==2" class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计收入</div>
					<div>{{pagedata.data.credit2inall || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 余额</div>
					<div class="bold" style="font-size:1rem">{{pagedata.member.credit2 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit2inday || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日收入</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit2inlastday || '0'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日收入</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit2outall || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">累计支出</div>
								</div>
					</div>
			</div>
        </div>
		<div ng-if="pagedata.params.type2==3" class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计收入</div>
					<div>{{pagedata.data.credit3inall || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 金币</div>
					<div class="bold" style="font-size:1rem">{{pagedata.member.credit3 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit3inday || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日收入</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit3inlastday || '0'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日收入</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit3outall || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">累计支出</div>
								</div>
					</div>
			</div>
        </div>
		<div ng-if="pagedata.params.type2==4" class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计提现</div>
					<div>{{pagedata.data.credit4inall || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 可提现余额</div>
					<div class="bold" style="font-size:1rem">{{pagedata.member.credit2 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit4inday || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日提现</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit4inlastday || '0'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日提现</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.data.credit4inall || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">累计提现</div>
								</div>
					</div>
			</div>
        </div>
        <div class='fui-list-group container' ng-if="pagedata.params.type2!=4" >
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-inner">
					<div class='title'>
						<span ng-show="item.is_add==1" class="label label-success">{{item.is_addtitle}}</span>
						<span ng-show="item.is_add!=1" class="label label-danger">{{item.is_addtitle}}</span>
						<span class="red" style="margin-left:0.3rem">{{item.fee}}</span>
						<span class="gray" style="font-size:0.6rem;"> {{item.type==2?'元':'个金币'}}</span>
					</div>
					<div class='gray'>{{item.createtime}}</div>
				</div>
				<div class='fui-list-angle'>
					<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.remark}}</span>
				</div>
			</div>
		</div>
		<div class='fui-list-group container' style="margin-top:0" ng-if="pagedata.params.type2==4">
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-inner">
					<div class='title'>
						<span class="label label-success">{{item.typetitle}}</span>
						<span class="red" style="margin-left:0.3rem">{{item.money}}</span>
						<span class="gray" style="font-size:0.6rem;"> 元</span>
						<span ng-show="item.service_money" class="gray" style="margin-left:0.2rem;font-size:0.6rem;"> (手续费：￥{{item.service_money}})</span>
					</div>
					<div class='gray'>{{item.createtime}} <span class="fui-tag-red-o">{{item.statustitle}}</span></div>
				</div>
				<div class='fui-list-angle'>
					<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.remark || '无备注'}}</span>
				</div>
			</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>
	</div>
	<div ng-include="sys_html('common/_copyright',true)"></div>
    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_newcar/fenxiao.credit_log/list/',true);
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.params.type2==4){
		scope.tool.get_list('core/member.cash_log/list/type=0');
	}else{
		scope.tool.get_list('jy_newcar/fenxiao.credit_log/list/');
	}
}
</script>

